/** 需求：只渲染高级学校 */
<template>
  <div class="about">
    <el-input v-model="hhh" placeholder="缓存记录" />
    <div v-for="(item, index) in reqDatas" :key="index">
      <div>
        {{ item.name }}
      </div>
      <!-- {{ item.name }} -->
    </div>
  </div>
</template>

<script>
export default {
  name: 'About',
  data() {
    return {
      hhh: '',
      reqData: [
        {
          name: '上海一中',
          type: '高级'
        },
        {
          name: '上海er中',
          type: '低级'
        },
        {
          name: '上海3中',
          type: '高级'
        },
        {
          name: '上海4中',
          type: '低级'
        },
        {
          name: '上海6中',
          type: '高级'
        },
        {
          name: '上海5中',
          type: '低级'
        },
        {
          name: '上海9中',
          type: '高级'
        },
        {
          name: '上海99999中',
          type: '低级'
        }
      ]
    }
  },
  computed: {
    reqDatas() {
      return this.reqData.filter((item) => {
        return item.type === '高级'
      })
    }
  }
}
</script>
